﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace SSP
{
    class SSPScene : SSPNode
    {
        public bool isInputEnabled;
        

        public SSPScene()
        {
            anchorPoint.X = SSPDirector.Instance.windowSize().X / 2; //gameInstance.GraphicsDevice.Adapter.CurrentDisplayMode.Width / 2;
            anchorPoint.Y = SSPDirector.Instance.windowSize().Y / 2; //gameInstance.GraphicsDevice.Adapter.CurrentDisplayMode.Height / 2;

            isScene = true;
        }

        public override void draw()
        {
            foreach (SSPNode n in children)
            {
                n.draw();
            }
        }

        public override void update()
        {
            foreach (SSPNode n in children)
            {
                n.update();
            }
        }

        public virtual void DoPlayerAction(PlayerAction action)
        {
        }
    }
}
